package com.poseidon.cglibdemo;

import com.alibaba.druid.util.StringUtils;
import com.pandora.common.exception.EduException;

public class Sell {

	public void sellBook(String bookName) throws EduException {
		if (StringUtils.isEmpty(bookName)) {
			throw new EduException("书名不能为空");
		}
		System.out.println("卖书了：" + bookName);
	}

	public String getBook(int id) throws EduException {
		if (id == 0) {
			throw new EduException("不给我编号怎们给你书");
		}
		System.out.println(("给你书->编号：" + id));
		return "";
	}
}
